package day03;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入第一个整数a");
        int a = scanner.nextInt();
        System.out.println("请输入第二个整数b");
        int b = scanner.nextInt();
        System.out.println("请输入第三个整数c");
        int c = scanner.nextInt();
        int x ;
        if (a>b){
            x = a;
            a = b;
            b = x;
        }
        if (a>c){
            x = a;
            a = c;
            c = x;
        }
        if (b>c){
            x = b;
            b = c;
            c = x;
        }

        System.out.println("a="+a);
        System.out.println("b="+b);
        System.out.println("c="+c);
    }
}
